home *** CD-ROM | disk | FTP | other *** search
/ Alles Voor Internet / Tout Pour Internet / alles voor internet.iso / MacInternet™ / Telnet / Terminal 2.2 / Project / Sources / MacHeadersMPW.c < prev    next >
Text File  |  1992-01-17  |  2KB  |  77 lines

  1. /*
  2.     Terminal 2.0
  3.     "MacHeadersMPW.c"
  4.  
  5.     Compile this file, it will create "MacHeadersMPW"
  6.     containing the precompiled headers needed
  7. */
  8.  
  9.  
  10. #include <Controls.h>
  11. #include <CType.h>
  12. #include <Desk.h>
  13. #include <Devices.h>
  14. #include <Dialogs.h>
  15. #include <DiskInit.h>
  16. #include <Errors.h>
  17. #include <Files.h>
  18. #include <Fonts.h>
  19. #include <Memory.h>
  20. #include <Menus.h>
  21. #include <Packages.h>
  22. #include <OSUtils.h>
  23. #include <Resources.h>
  24. #include <Scrap.h>
  25. #include <Script.h>
  26. #include <Serial.h>
  27. #include <SetJmp.h>
  28. #include <StandardFile.h>
  29. #include <StdArg.h>
  30. #include <String.h>
  31. #include <Strings.h>
  32. #include <SysEqu.h>
  33. #include <ToolUtils.h>
  34. #include <Types.h>
  35. #include <Windows.h>
  36.  
  37. /* Macros not found in MPW, but used by THINK C */
  38.  
  39. /* typedef unsigned char Byte; */    /* Is now defined in "Types.h" of MPW 3.2 */
  40. enum { FALSE, TRUE };
  41. #define topLeft(r)    (((Point *) &(r))[0])
  42. #define botRight(r)    (((Point *) &(r))[1])
  43. #define CtoPstr        c2pstr
  44. #define PtoCstr        p2cstr
  45.  
  46. /* Low memory globals are real variables in THINK C,
  47. but are only address constants in MPW */
  48.  
  49. #define Time            (*(long *)0x20C)
  50. #define Ticks            (*(long *)0x16A)
  51. #define SCCRd            (*(Ptr *)0x1D8)
  52. #define SFSaveDisk        (*(short *)0x214)
  53. #define CurDirStore        (*(long *)0x398)
  54. #define CurStackBase    (*(Ptr *)0x908)
  55. #define GrayRgn            (*(RgnHandle *)0x9EE)
  56. #define MemErr            (*(short *)0x220)
  57. #define MBarHeight        (*(short *)0xBAA)
  58.  
  59. /* The QuickDraw global variables structure does not
  60. exist in THINK C, so use a macro to generate the names */
  61.  
  62. #define QD(x)    (qd.x)
  63.  
  64. /*
  65.     Attention:
  66.     
  67.     • int        4 bytes in MPW and 2 bytes in THINK C
  68.     • \r        Line feed in MPW, carriage return in THINK C
  69.     • \n        Carriage return in MPW, line feed in THINK C
  70.     • char        4 bytes on stack if passed to a function
  71.     • short        4 bytes on stack if passed to a function
  72. */
  73.  
  74. /* Precompile all definitions */
  75.  
  76. #pragma dump ":(Objects):MacHeadersMPW"
  77.